package com.geekcattle.service.user.impl;

import com.geekcattle.mapper.user.UserMapper;
import com.geekcattle.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @program: geek-framework
 * @description:
 * @author: LQ
 * @create: 2019-05-05 21:01
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public void addUser(Map map) {
        userMapper.addUser(map);
    }

    @Override
    public List<Map> getUser(Map map) {
        return userMapper.getUser(map);
    }

    @Override
    public void addRole(Map map) {
        userMapper.addRole(map);
    }

    @Override
    public int updateUser(Map map) {
        return userMapper.updateUser(map);
    }
}
